home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 6⁄15⁄90 / 1430-Active Window Proble-Jun90 < prev    next >
Encoding:
Text File  |  1990-06-15  |  1.8 KB  |  51 lines  |  [TEXT/GEOL]

  1. Item    8740023                         11-June-90        16:02PDT
  2.  
  3. From:   ISD                             Intelligent Sys Design,M Staley,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    Active Window Problem
  8.  
  9. Hello Fellow MacAppers,
  10.  
  11. I've had enough!  You know how frustrated you get when you want to
  12. do something simple, but you can't find the right combination of
  13. code/objects/overrides to get the job done.  It makes you want to
  14. throw the monitor through the window even though it isn't the
  15. monitor's fault.  Everyone know's its the CPU's fault because
  16. programmer's don't make mistakes.  I have reached this point
  17. (yet again) and I need to see if someone brighter can tell me
  18. how to solve a fairly simple problem.  Here is the short
  19. description of what I need to be able to do:
  20.  
  21. I have 2 windows consisting of many views each.
  22.  
  23. Window 1 is the active window.  Let's say that window 1 is
  24. just a simple TEView with some text that is highlighted.  It
  25. makes very little difference what is in the window or how it
  26. is built.
  27.  
  28. Window 2 is a small window containing a couple of buttons.  It
  29. is not the active window.
  30.  
  31. Problem:  I need to be able to point to one of the buttons in
  32. window 2 and click on it.  Currently this causes window 2 to
  33. become the active window.  I need window 1 to be reactivated
  34. after the completion of the button command without any further
  35. action by the user.  This will leave the user in the state
  36. that existed prior to his/her pressing of the button.  We are
  37. using the buttons to control external devices and we don't
  38. want to force the user to reactivate window 1 by clicking in
  39. the view.
  40.  
  41. I hope that someone has an idea of how this might be done.  The
  42. MacApp debugger does something similar when you do a 'Go' and
  43. the last active window is reactivated.  Any help provided is
  44. greatly appreciated.
  45.  
  46. Learn to Auto-X,
  47.  
  48.  
  49. Mike
  50.  
  51.